import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const movie: AppRouteModule = {
  path: '/movies',
  name: 'Movies',
  component: LAYOUT,
  redirect: '/movies/list',
  meta: {
    orderNo: 700,
    icon: 'ion:film-outline',
    hideChildrenInMenu: true,
    title: t('routes.hopefly.movie.movie'),
  },
  children: [
    {
      path: 'list',
      name: 'MovieList',
      component: () => import('@/views/hopefly/movie/MovieList.vue'),
      meta: {
        title: '电影列表',
        // ignoreKeepAlive: true,
      },
    },
    // {
    //   path: 'download',
    //   name: 'MovieDownload',
    //   component: () => import('@/views/hopefly/movie/MovieDownload.vue'),
    //   meta: {
    //     title: '视频下载',
    //     // ignoreKeepAlive: true,
    //   },
    // },
  ],
};

export default movie;
